package com.bambooshoot.domain.bo;

import com.bambooshoot.common.core.domain.BaseEntity;
import com.bambooshoot.common.validate.AddGroup;
import com.bambooshoot.common.validate.EditGroup;
import com.bambooshoot.domain.BizLiquorRecords;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 白酒记录业务对象 biz_liquor_records
 *
 * @author mxc
 * @date 2024-11-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BizLiquorRecords.class, reverseConvertGenerate = false)
public class BizLiquorRecordsBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 购买日期
     */
    @NotNull(message = "购买日期不能为空", groups = {AddGroup.class, EditGroup.class})
    private Date purchaseDate;

    /**
     * 白酒品牌
     */
    @NotNull(message = "白酒品牌不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer brand;

    /**
     * 酒的简称
     */
    @NotBlank(message = "简称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String shortName;

    /**
     * 酒的具体名称
     */
    @NotBlank(message = "全称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String name;

    /**
     * 规格:如 “1L*1”“500ml*6” 等
     */
    private String specification;

    /**
     * 酒精度数
     */
    @NotBlank(message = "酒精度数不能为空", groups = {AddGroup.class, EditGroup.class})
    private String degree;

    /**
     * 体积，单位：毫升
     */
    private Long volume;

    /**
     * 平台名称
     */
    private Integer platform;

    /**
     * 店铺名称
     */
    private String shopName;

    /**
     * 价格(元)
     */
    @NotNull(message = "价格(元)不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal price;

    /**
     * 斤价(元)
     */
    private BigDecimal unitPrice;

    /**
     * 最低斤价(元)
     */
    private BigDecimal minPrice;

    /**
     * 最高斤价(元)
     */
    private BigDecimal maxPrice;


    /**
     * 备注
     */
    private String remark;


}
